#ifndef REPORTE_DAZZLING_H
#define REPORTE_DAZZLING_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"

#include "../LOG.h"
#include "../arch_os.h"
#include "../Product_Config.h"

#include "report_config.h"
#include "../my_driver/uart_driver.h"

#include "../mode_Config/mode_brighness_config.h"
#include "../mode_Config/mode_status_handle.h"
#include "../mode_Config/mode_scene_config.h"
#include "../mode_Config/mode_light_effect_config.h"
#include "../mode_Config/mode_custom_config.h"
#include "../mode_Config/mode_part_config.h"
#include "../mode_Config/cw_brighness_config.h"
#define IOT_REPORTE_SPEED_MS 20

typedef struct 
{
    EM_SYS_SSP main_ssp; //保存当前状态
    u8 brighness_level; //灯光亮度
    EM_SCENE_SSP scene_mode; //场景模式
    u8 custom_ssp; //自定义模式子模式
    LIGHT_EFFECT_MODE light_effect_ssp; //自定义灯光效果
    PART_INFO_T custom_part; //自定义分段信息
    u8 wait; //自定义延时时间
    u8 micro_senst; //麦克风灵敏度
    EM_MICRO_SSP spectral_mode; //麦克风子模式
    PART_INFO_T part_info; //分段信息
    u8 scene_senet; //场景模式灵敏度
    CW_BRIGHNESS cw_date_config; //CW模式相关
}iot_dazzling_info_t; //上报函数结构体

void task_iot_report_init(); //初始化上报结构体
void iot_report_init();






#endif